home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch07 / 07fig11.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  78 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Ground
  8.         Shape {
  9.             appearance DEF White Appearance {
  10.                 material Material { }
  11.             }
  12.             geometry Box {
  13.                 size 25.0 0.1 25.0
  14.             }
  15.         },
  16.     # First archway
  17.         DEF Archway Group {
  18.             children [
  19.             # Left Column
  20.                 DEF LeftColumn Transform {
  21.                     translation -2.0 3.0 0.0
  22.                     children DEF Column Shape {
  23.                         appearance USE White
  24.                         geometry Cylinder {
  25.                             radius 0.3
  26.                             height 6.0
  27.                         }
  28.                     }
  29.                 },
  30.             # Right Column
  31.                 DEF RightColumn Transform {
  32.                     translation 2.0 3.0 0.0
  33.                     children USE Column
  34.                 },
  35.             # Archway span
  36.                 DEF ArchwaySpan Transform {
  37.                     translation 0.0 6.05 0.0
  38.                     children Shape {
  39.                         appearance USE White
  40.                         geometry Box {
  41.                             size 4.6 0.4 0.6
  42.                         }
  43.                     }
  44.                 },
  45.             # Left Roof
  46.                 DEF LeftRoof Transform {
  47.                     translation -1.15 7.12 0.0
  48.                     rotation 0.0 0.0 1.0  0.524
  49.                     children DEF Roof Shape {
  50.                         appearance USE White
  51.                         geometry Box {
  52.                             size 2.86 0.4 0.6
  53.                         }
  54.                     }
  55.                 },
  56.             # Right Roof
  57.                 DEF RightRoof Transform {
  58.                     translation 1.15 7.12 0.0
  59.                     rotation 0.0 0.0 1.0  -0.524
  60.                     children USE Roof
  61.                 }
  62.             ]
  63.         },
  64.     # Left small archway
  65.         Transform {
  66.             translation -4.0 0.0 0.0
  67.             scale 0.5 0.5 0.5
  68.             children USE Archway
  69.         },
  70.     # Right small archway
  71.         Transform {
  72.             translation 4.0 0.0 0.0
  73.             scale 0.5 0.5 0.5
  74.             children USE Archway
  75.         }
  76.     ]
  77. }
  78.